<%@ page contentType="text/html;charset=ISO8859_1" language="java" %>

<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-nested.tld" prefix="nested" %>

<html:html locale="true">
<script>
	var oCtrl = parent.document.all.<bean:write name="FieldGetterForm" property="ctrl" />;
	if (undefined != oCtrl.value)
	{
		oCtrl.value = '';
	}
	else
	{
		oCtrl.innerText = '';
	}
	
<logic:iterate id="element" name="result">
	if (undefined != oCtrl.value)
	{
		oCtrl.value = '<bean:write name="element" property="translabel" />';
	}
	else
	{
		oCtrl.innerText = '<bean:write name="element" property="translabel" />';
	}
</logic:iterate> 
</script>
</html:html>
